Optimal. Leaf size=51 \[ -\frac {\sqrt {d^2-e^2 x^2}}{d x}+\frac {e \tanh ^{-1}\left (\frac {\sqrt {d^2-e^2 x^2}}{d}\right )}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 51, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.185, Rules used = {864, 821, 272,
65, 214} \begin {gather*} \frac {e \tanh ^{-1}\left (\frac {\sqrt {d^2-e^2 x^2}}{d}\right )}{d}-\frac {\sqrt {d^2-e^2 x^2}}{d x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 214
Rule 272
Rule 821
Rule 864
Rubi steps
\begin {align*} \int \frac {\sqrt {d^2-e^2 x^2}}{x^2 (d+e x)} \, dx &=\int \frac {d-e x}{x^2 \sqrt {d^2-e^2 x^2}} \, dx\\ &=-\frac {\sqrt {d^2-e^2 x^2}}{d x}-e \int \frac {1}{x \sqrt {d^2-e^2 x^2}} \, dx\\ &=-\frac {\sqrt {d^2-e^2 x^2}}{d x}-\frac {1}{2} e \text {Subst}\left (\int \frac {1}{x \sqrt {d^2-e^2 x}} \, dx,x,x^2\right )\\ &=-\frac {\sqrt {d^2-e^2 x^2}}{d x}+\frac {\text {Subst}\left (\int \frac {1}{\frac {d^2}{e^2}-\frac {x^2}{e^2}} \, dx,x,\sqrt {d^2-e^2 x^2}\right )}{e}\\ &=-\frac {\sqrt {d^2-e^2 x^2}}{d x}+\frac {e \tanh ^{-1}\left (\frac {\sqrt {d^2-e^2 x^2}}{d}\right )}{d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.17, size = 98, normalized size = 1.92 \begin {gather*} -\frac {\sqrt {d^2-e^2 x^2}+e x \log \left (d \left (-d-\sqrt {-e^2} x+\sqrt {d^2-e^2 x^2}\right )\right )-e x \log \left (d-\sqrt {-e^2} x+\sqrt {d^2-e^2 x^2}\right )}{d x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(227\) vs.
\(2(47)=94\).
time = 0.06, size = 228, normalized size = 4.47
method | result | size |
risch | \(-\frac {\sqrt {-e^{2} x^{2}+d^{2}}}{d x}+\frac {e \ln \left (\frac {2 d^{2}+2 \sqrt {d^{2}}\, \sqrt {-e^{2} x^{2}+d^{2}}}{x}\right )}{\sqrt {d^{2}}}\) | \(63\) |
default | \(\frac {e \left (\sqrt {-\left (x +\frac {d}{e}\right )^{2} e^{2}+2 d e \left (x +\frac {d}{e}\right )}+\frac {d e \arctan \left (\frac {\sqrt {e^{2}}\, x}{\sqrt {-\left (x +\frac {d}{e}\right )^{2} e^{2}+2 d e \left (x +\frac {d}{e}\right )}}\right )}{\sqrt {e^{2}}}\right )}{d^{2}}+\frac {-\frac {\left (-e^{2} x^{2}+d^{2}\right )^{\frac {3}{2}}}{d^{2} x}-\frac {2 e^{2} \left (\frac {x \sqrt {-e^{2} x^{2}+d^{2}}}{2}+\frac {d^{2} \arctan \left (\frac {\sqrt {e^{2}}\, x}{\sqrt {-e^{2} x^{2}+d^{2}}}\right )}{2 \sqrt {e^{2}}}\right )}{d^{2}}}{d}-\frac {e \left (\sqrt {-e^{2} x^{2}+d^{2}}-\frac {d^{2} \ln \left (\frac {2 d^{2}+2 \sqrt {d^{2}}\, \sqrt {-e^{2} x^{2}+d^{2}}}{x}\right )}{\sqrt {d^{2}}}\right )}{d^{2}}\) | \(228\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.34, size = 49, normalized size = 0.96 \begin {gather*} -\frac {x e \log \left (-\frac {d - \sqrt {-x^{2} e^{2} + d^{2}}}{x}\right ) + \sqrt {-x^{2} e^{2} + d^{2}}}{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {- \left (- d + e x\right ) \left (d + e x\right )}}{x^{2} \left (d + e x\right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 102 vs.
\(2 (46) = 92\).
time = 1.33, size = 102, normalized size = 2.00 \begin {gather*} \frac {e \log \left (\frac {{\left | -2 \, d e - 2 \, \sqrt {-x^{2} e^{2} + d^{2}} e \right |} e^{\left (-2\right )}}{2 \, {\left | x \right |}}\right )}{d} + \frac {x e^{3}}{2 \, {\left (d e + \sqrt {-x^{2} e^{2} + d^{2}} e\right )} d} - \frac {{\left (d e + \sqrt {-x^{2} e^{2} + d^{2}} e\right )} e^{\left (-1\right )}}{2 \, d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {\sqrt {d^2-e^2\,x^2}}{x^2\,\left (d+e\,x\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________